* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
      Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial,
      'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    padding: 2rem 1rem;
}

.page-title {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.content a {
    display: block;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-decoration: none;
}

.content a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.content img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border: none;
    margin: 0;
    padding: 1.5rem;
    background-color: #fff;
}

.resource-name {
    text-align: center;
    padding: 0.8rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    background-color: #fff;
}

.return {
    text-align: center;
}

.return button {
    width: 120px;
    height: 45px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.return button:hover {
    background-color: #4096ff;
    border-color: #4096ff;
}

.return button a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .content {
        gap: 1rem;
    }

    .content img {
        height: 140px;
        padding: 1rem;
    }
}